package com.example.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

import com.example.demo.util.LogUtil;

@MapperScan("com.example.demo.dao")
@ComponentScan(basePackages = "com.example.demo")
@SpringBootApplication
public class BootDemoApplication {

	public static void main(String[] args) {
		SpringApplication.run(BootDemoApplication.class, args);

		
		Thread thread = new Thread() {
			public void run() {
				for(int i=0;;i++) {
					//System.out.println("Zero Running");
					LogUtil.info("Zero Running"+i);
					try {
						Thread.sleep(1*1000);
					} catch (InterruptedException e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					}
				}
				
			}

			
		};
		thread.start();
	}
}
